
<form name="editForm" role="form" novalidate ng-submit="vm.save()">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                ng-click="vm.clear()">&times;</button>
        <h4 class="modal-title" id="myIsurerLabel" data-translate="byibserverApp.isurer.home.createOrEditLabel">Create or edit a Isurer</h4>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" ng-show="vm.isurer.id">
            <label for="id" data-translate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                    ng-model="vm.isurer.id" readonly />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.companyImage" for="field_companyImage">Company Image</label>

            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="companyImage" id="companyImage" select-img="vm.isurer.companyImage" loading="vm.isurer.imgLoading1" loading-success="vm.isurer.imgLoadSuceess1" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.isurer.companyImage}}" alt="">
                <span  ng-show="vm.isurer.imgLoadSuceess1" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.isurer.imgLoading1"><img src="content/images/loading.gif" alt="">图片上传中...</div>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.backgroundImg" for="field_backgroundImg">Background Img</label>
            <button class="btn btn-primary hide-input">
                选择图片
                <input type="file"  name="backgroundImg" id="backgroundImg" select-img="vm.isurer.backgroundImg" loading="vm.isurer.imgLoading2" loading-success="vm.isurer.imgLoadSuceess2" accept="image/jpeg,image/png,image/jpg" />
            </button>
            <div class="img-placeholder">
                <img ng-src="{{vm.isurer.backgroundImg}}" alt="">
                <span  ng-show="vm.isurer.imgLoadSuceess2" style="color: #FE7F7F;margin-left: 10px">上传成功！</span>
            </div>
            <div class="loading-img" ng-show="vm.isurer.imgLoading2"><img src="content/images/loading.gif" alt="">图片上传中...</div>

        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.corporateName" for="field_corporateName">Corporate Name</label>
            <input type="text" class="form-control" name="corporateName" id="field_corporateName"
                    ng-model="vm.isurer.corporateName"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.sybopsis" for="field_sybopsis">Sybopsis</label>
                <textarea class="form-control" name="sybopsis" id="field_sybopsis"
                    ng-model="vm.isurer.sybopsis" ></textarea>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.shareholderInfoAbstract" for="field_shareholderInfoAbstract">Shareholder Info Abstract</label>
            <input type="text" class="form-control" name="shareholderInfoAbstract" id="field_shareholderInfoAbstract"
                    ng-model="vm.isurer.shareholderInfoAbstract"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.shareholderInfo" for="field_shareholderInfo">Shareholder Info</label>
                <textarea class="form-control" name="shareholderInfo" id="field_shareholderInfo"
                    ng-model="vm.isurer.shareholderInfo" ></textarea>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.companyOperationsAbstract" for="field_companyOperationsAbstract">Company Operations Abstract</label>
            <input type="text" class="form-control" name="companyOperationsAbstract" id="field_companyOperationsAbstract"
                    ng-model="vm.isurer.companyOperationsAbstract"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.companyOperations" for="field_companyOperations">Company Operations</label>
                <textarea class="form-control" name="companyOperations" id="field_companyOperations"
                    ng-model="vm.isurer.companyOperations" ></textarea>
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.claimSettlingCapacityAbstract" for="field_claimSettlingCapacityAbstract">Claim Settling Capacity Abstract</label>
            <input type="text" class="form-control" name="claimSettlingCapacityAbstract" id="field_claimSettlingCapacityAbstract"
                    ng-model="vm.isurer.claimSettlingCapacityAbstract"
                    />
        </div>
        <div class="form-group">
            <label class="control-label" data-translate="byibserverApp.isurer.claimSettlingCapacity" for="field_claimSettlingCapacity">Claim Settling Capacity</label>
                <textarea class="form-control" name="claimSettlingCapacity" id="field_claimSettlingCapacity"
                    ng-model="vm.isurer.claimSettlingCapacity" ></textarea>
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()">
            <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary">
            <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span>
        </button>
    </div>
</form>
